package com.java_base.array_study;

public class ArrayTest3 {
    public static void main(String[] args) {
        // 需求：数组元素求最大值。
        int[] faceScores = {15,9000,10000,9500,-5};
        int faceMax = 0;
        for (int i = 0; i < faceScores.length; i++) {
            if (faceMax < faceScores[i]){
                faceMax = faceScores[i];
            }
        }
        System.out.println(faceMax);
    }
}
